import request from '@/utils/request'

// 查询客戶预约列表
export function listReservation(query) {
  return request({
    url: '/biz/reservation/list',
    method: 'get',
    params: query
  })
}

// 查询客戶预约详细
export function getReservation(id) {
  return request({
    url: '/biz/reservation/' + id,
    method: 'get'
  })
}

// 新增客戶预约
export function addReservation(data) {
  return request({
    url: '/biz/reservation',
    method: 'post',
    data: data
  })
}

// 客戶自主预约
export function addReservationApply(data) {
  return request({
    url: '/biz/reservation/apply',
    method: 'post',
    data: data
  })
}

// 修改客戶预约
export function updateReservation(data) {
  return request({
    url: '/biz/reservation',
    method: 'put',
    data: data
  })
}

// 删除客戶预约
export function delReservation(id) {
  return request({
    url: '/biz/reservation/' + id,
    method: 'delete'
  })
}

// 確認預約
export function putReservationComplete(data) {
  return request({
    url: '/biz/reservation/complete',
    method: 'put',
    data: data
  })
}
export function postReservationStatistics(data) {
  return request({
    url: '/biz/reservation/statistics',
    method: 'post',
    data: data
  })
}
// completeBtn
// 客戶確認預約

